package com.yf1706.service;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yf1706.bean.ExamPaper;
import com.yf1706.bean.ExamPaperQuestion;
import com.yf1706.dao.jpa.ExamPaperJDAO;
import com.yf1706.dao.mybatis.ExamPaperMDAO;
import com.yf1706.dao.mybatis.ExamPaperQuestionMDAO;

@Service
@Transactional
public class ExamPaperQuestionService {
	
	@Autowired
	private ExamPaperQuestionMDAO epqmdao;
	
	@Autowired
	private ExamPaperMDAO epmdao;
	
	public List<ExamPaperQuestion> queryByExamPaperId(int examPaperId,String type){
		return epqmdao.queryByExamPaper(epmdao.queryByExamPaperId(examPaperId).get(0),type);
	}
}
